package com.ruoyi.district.service.impl;

import java.util.List;

import com.ruoyi.district.Vo.CityVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.district.mapper.FangCityMapper;
import com.ruoyi.district.domain.FangCity;
import com.ruoyi.district.service.IFangCityService;

/**
 * 城市区域Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
@Service
public class FangCityServiceImpl implements IFangCityService 
{
    @Autowired
    private FangCityMapper fangCityMapper;

    /**
     * 查询城市区域
     * 
     * @param id 城市区域主键
     * @return 城市区域
     */
    @Override
    public FangCity selectFangCityById(Integer id)
    {
        return fangCityMapper.selectFangCityById(id);
    }

    /**
     * 查询城市区域列表
     * 
     * @param fangCity 城市区域
     * @return 城市区域
     */
    @Override
    public List<FangCity> selectFangCityList(FangCity fangCity)
    {
        return fangCityMapper.selectFangCityList(fangCity);
    }

    /**
     * 新增城市区域
     * 
     * @param fangCity 城市区域
     * @return 结果
     */
    @Override
    public int insertFangCity(FangCity fangCity)
    {
        return fangCityMapper.insertFangCity(fangCity);
    }

    /**
     * 修改城市区域
     * 
     * @param fangCity 城市区域
     * @return 结果
     */
    @Override
    public int updateFangCity(FangCity fangCity)
    {
        return fangCityMapper.updateFangCity(fangCity);
    }

    /**
     * 批量删除城市区域
     * 
     * @param ids 需要删除的城市区域主键
     * @return 结果
     */
    @Override
    public int deleteFangCityByIds(Integer[] ids)
    {
        return fangCityMapper.deleteFangCityByIds(ids);
    }

    /**
     * 删除城市区域信息
     * 
     * @param id 城市区域主键
     * @return 结果
     */
    @Override
    public int deleteFangCityById(Integer id)
    {
        return fangCityMapper.deleteFangCityById(id);
    }

    @Override
    public List<FangCity> listCity(CityVo cityVo) {
        return fangCityMapper.listCity(cityVo);
    }
}
